﻿@using www.Controllers
@using www.Core.Contract.DataContract
@model List<RelaxPhotoDataContract>
@{
  Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="content">
    <div class="default-left">
        <div id="imgcommic">
            @if (Model != null)
            {
                foreach (var item in Model)
                {
                    <div class="frame-content">
                        <div class="title">
                            <h3><a href="http://relax2s.com/Home/PhotoDetail/@Session["Culture"]/@item.Id/@item.Tag">@item.Name</a></h3>
                        </div>
                        <div class="row">
                            <table style="width: 100%; height: auto; overflow: hidden; border: 0; font-weight: bold; color: #333;">
                                <tr>
                                    <td>Người đăng: @item.UserName</td>
                                    <td>Ngày đăng: @Convert.ToDateTime(item.Date).ToShortDateString()</td>
                                    <td>Lượt xem: @(item.View*2 + 101) </td>
                                    <td>
                                        <div class="fb-like" data-href="http://relax2s.com/@Session["Culture"]/@item.Id/@item.Tag" data-width="200" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
                                        <a href="https://twitter.com/share?count=data-count" class="twitter-share-button" data-url="http://relax2s.com/Home/PhotoDetail/@Session["Culture"]/@item.Id/@item.Tag" data-text="Dragon infomation" data-via="Dragon_hy"></a>
                                        <script type="IN/FollowCompany" data-id="http://relax2s.com" data-counter="right"></script>
                                        <script type="IN/Share" data-url="http://relax2s.com" data-counter="right"></script>
                                        <div class="g-plusone" data-annotation="inline" data-width="120"></div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div id="fun_@item.Id" class="imagefun">
                            <a href="http://relax2s.com/Home/PhotoDetail/@Session["Culture"]/@item.Id/@item.Tag">
                                <img src="/@item.Image" alt="@item.Name"/>
                                @Html.Raw(HttpUtility.HtmlDecode(item.Detail))
                            </a>
                        </div>
                    </div>

                }
            }
            else
            {
                @Utility.GetResource.GetResouceMessage(Session["Culture"], "lblEmpty")
            }
        </div>
        <div id="loading"></div>
    </div>
    <div class="default-right">
        <div id="readstory">
            @if (ViewBag.RelaxPhotoDataContracts != null)
            {
                foreach (var item in (List<RelaxPhotoDataContract>)ViewBag.RelaxPhotoDataContracts)
                {
                <div class="photo">
                    <div class="row">
                        <h3><b><a href="/Home/PhotoDetail/@Session["Culture"]/@item.Id/@item.Tag">@item.Name</a></b></h3>
                    </div>
                    <div class="photoimg">
                        <a href="/Home/PhotoDetail/@Session["Culture"]/@item.Id/@item.Tag">
                            <img src="../@item.Image" alt="@item.Name"/>
                             @Html.Raw(HttpUtility.HtmlDecode(item.Detail))
                        </a>
                    </div>
                </div>
                }
                <div class="watchmore">
                    <a href="/Home/PhotoSexy/@Session["Culture"]">@Utility.GetResource.GetResouceValue(Session["Culture"], "lblWatchMore")...</a>
                </div>
            }
        </div>
        <div id="space"></div>
    </div>
</div>
